﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Application.Dto
{
    /// <summary>
    /// 数据字典数据传输对象
    /// </summary>
    public class CreateDataDictionaryDto
    {
        /// <summary>
        /// 类别id
        /// </summary>
        [Required(ErrorMessage = "字典类别必填")]
        public Guid CategoryId { get; set; }
        /// <summary>
        /// 字典key
        /// </summary>
        [Required(ErrorMessage = "字典Key必填")]
        public string DataKey { get; set; }
        /// <summary>
        /// 字典value
        /// </summary>
        public string DataValue { get; set; }
        /// <summary>
        /// 字典描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 排序号
        /// </summary>
        public int SortNumber { get; set; }
    }
}
